/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Configuracion;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

/**
 *
 * @author Nas
 */
public class Propiedad {
    
    private static Properties data;
    
    static {
    data = new Properties();
    }
    
    public static void loadConfig() throws FileNotFoundException, IOException{
        FileInputStream propFile = new FileInputStream("DatosConfiguration.conf");
        data = new Properties(System.getProperties());
        data.load(propFile);
    }
    
    public static String get(String key){
      return  (String) data.get(key); 
    }
            
    
}
